package com.brush.brushcommon.redis;

/**
 * redis统一key 时间为秒
 */
public class RedisConstants {
    /**
     * 验证码key
     * 5分钟
     */
    public static final String LOGIN_CAPTCHA_KEY = "login:captcha:";
    public static final Long LOGIN_CAPTCHA_TTL = 300l;


    /**
     * 手机短信key
     * 5分钟
     */
    public static final String LOGIN_CODE_KEY = "login:code:";
    public static final Long LOGIN_CODE_TTL = 300l;


    /**
     * 分类缓存
     * 1天
     */
    public static final String BASIC_CATEGORY_KEY = "basic:category";
    public static final Long BASIC_CATEGORY_TTL = (24*60*60)*1l;

}
